package com.gouqi.mall.domain;


import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;


/**
 * @author:xiaofei
 * @time:2020-04-24
 * @description:返回的状态码和结果集
 */
public class ResultJson extends ValueObject{
    //浏览器状态码
    private Integer status;
    //结果状态码
    private Integer code;
    // 操作结果提醒消息
    private String message;
    //数据库操作的结果集

    private Object ResultJson;

    public ResultJson(){}

    public ResultJson(Integer status, Integer code, String message, Object ResultJson) {
        this.status = status;
        this.code = code;
        this.message = message;
        this.ResultJson = ResultJson;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getResultJson() {
        return ResultJson;
    }

    public void setResultJson(Object ResultJson) {
        this.ResultJson = ResultJson;
    }

    @Override
    public String toString() {
        return "ResultJson{" +
                "status=" + status +
                ", code=" + code +
                ", message='" + message + '\'' +
                ", ResultJson=" + ResultJson +
                '}';
    }
}
